package book.book.service;

import book.book.bean.User;
import book.book.dao.UserDao;
import book.book.dao.UserDaoImpl;

import java.util.List;

public class UserServiceImpl implements UserService{
    UserDao userDao = new UserDaoImpl();
    @Override
    public User login(User user) {
        User login = userDao.login(user);
        return login;

    }

    @Override
    public List<User> getAllUsers() {
        return userDao.getAllUsers();
    }

}
